const JSXModel = require('@peryl/react-compose/plugins/babel-plugin-react-model');

module.exports = {
  presets: [
    [
      "@babel/preset-env",
      {
        "useBuiltIns": "usage",
        "corejs": 3,
      },
    ],
    [
      "@babel/preset-react",
      { "throwIfNamespace": false, runtime: 'automatic' }
    ]
  ],
  "plugins": [
    JSXModel,
    '@babel/plugin-transform-class-properties',
    '@babel/plugin-proposal-optional-chaining'
  ]
};
